﻿using Microsoft.Owin.Hosting;
using System.ServiceProcess;

namespace Inovout.Web.Http
{
    public partial class WebApiService : ServiceBase
    {
        public WebApiService()
        {
            InitializeComponent();
        }

        public void Start(string[] args)
        {
            OnStart(args);
        }
        protected override void OnStart(string[] args)
        {
            string baseAddress = "http://localhost:10281/";
            WebApp.Start<WebApiApplication>(url: baseAddress);
        }

        protected override void OnStop()
        {
        }
    }
}
